package com.etoak.web.sys_role_user.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * @Author by 孙有泽
 * @Date 2025/2/18 21:30
 * @Description
 */
@Data
@TableName("user_role")
public class SysUserRole {
    @TableId(type = IdType.AUTO)
    private String id;

    @TableField(value = "user_id")
    private String userId;

    @TableField(value = "role_id")
    private String roleId;

    @TableField(fill = FieldFill.INSERT,value ="createTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;


}
